/* $Id: PageContestProblems.java 137 2011-08-29 20:33:36Z altdotua@gmail.com $ */

package alt.djudge.frontend.client.ui.admin;

import alt.djudge.frontend.client.ui.ContentPage;
import alt.djudge.frontend.client.ui.grids.GridContestProblems;

import com.google.gwt.user.client.ui.VerticalPanel;


public class PageContestProblems extends VerticalPanel implements ContentPage
{
	final GridContestProblems grid;
	
	public PageContestProblems()
	{
		grid = new GridContestProblems();
		add(grid);
	}

	@Override
	public void dispatch(String token)
	{
		if (grid.receivedData.size() == 0)
			grid.loadData(-1);
	}

	@Override
	public String getHistoryTokenPrefix()
	{
		return "contest-problems";
	}
}

